<?php
/**
 * Created by PhpStorm.
 * User: trisatria
 * Date: 1/15/14
 * Time: 10:12 PM
 */

namespace Admin\Model;
use Zend\InputFilter\Factory as InputFactory;
use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputFilter\InputFilterInterface;

class AdminUserMessage {
    public $id;
    public $form_user;
    public $to_user;
    public $type_request;
    public $message_content;
    public $is_accepted;
    public $from_user_name;
    public $form_user_email;
    public $to_user_name;
    public $to_user_email;
    public $create_date;

    public function exchangeArray($data){
        $this->id     = (isset($data['id'])) ? $data['id'] : null;
        $this->form_user = (isset($data['form_user'])) ? $data['form_user'] : null;
        $this->to_user  = (isset($data['to_user'])) ? $data['to_user'] : null;

        $this->type_request = (isset($data['type_request'])) ? $data['type_request'] : null;
        $this->message_content = (isset($data['message_content'])) ? $data['message_content'] : null;
        $this->from_user_name  = (isset($data['from_user_name'])) ? $data['from_user_name'] : null;
        $this->form_user_email  = (isset($data['form_user_email'])) ? $data['form_user_email'] : null;

        $this->to_user_name     = (isset($data['to_user_name'])) ? $data['to_user_name'] : null;
        $this->to_user_email = (isset($data['to_user_email'])) ? $data['to_user_email'] : null;

        $this->is_accepted  = (isset($data['is_accepted'])) ? $data['is_accepted'] : 0;
        $this->create_date  = (isset($data['create_date'])) ? $data['create_date'] : null;
    }

}